package com.jdiv.samples.scroll;

import com.jdiv.JDiv;
import com.jdiv.JProcess;

public class Personaje extends JProcess {

	public Personaje() {
		cnumber=C_1;
		ctype=C_SCROLL;
		JDiv.scroll[1].camera=id;
		graph=5;
		y=100;
	}

	public void begin() {}

	public void loop(){
		
		    if (key(_LEFT)) x-=5; 
		    if (key(_RIGHT)) x+=5; 
		    if (key(_UP)) y-=5; 
		    if (key(_DOWN)) y+=5; 
   
	}
}
